package cn.exrick.xboot.modules.news.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.exrick.xboot.modules.news.entity.NewsImages;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * 测试接口
 * @author Exrick
 */
public interface INewsImagesService extends IService<NewsImages> {

    public IPage<NewsImages> selectPageVo(Page page, @Param("old_name")String old_name);


    /**
     * 20190730
     * njp
     * 根据新闻id删除
     * map 为参数
     */
    public boolean deleteNewsImagesByNewsId( @Param("map") Map<String,Object> map);

    /**
     * 20190730
     * njp
     * 根据新闻查询
     * map 为参数
     */
    public NewsImages selectNewsImagesByNewsId( @Param("id")String id);
}